package cn.test;

/**
 * @author oldliu
 * @since 1.0
 */
public class Count7 {
    public static void main(String[] args) {
        //输出1-1000内能被7整除的数,并统计个数
        int i = 1;
        int x = 1;
        for (; i < 1000; i++) {
            if (i % 7 == 0) {
                System.out.println(i);
                x++;
            }

        }
        System.out.println(">>>>>>>>>>>>>>"+x);
    }
}
